package com.itqian.seller.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单从表
 * </p>
 *
 * @author shishuqian
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单详情id
     */
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    /**
     * 订单id(order_master表中的主键)
     */
    private Integer orderId;

    /**
     * 食堂店铺id
     */
    private Integer storeId;

    /**
     * 菜品id
     */
    private Integer foodId;

    /**
     * 菜品名称
     */
    private String foodName;

    /**
     * 菜品单价
     */
    private BigDecimal foodPrice;

    /**
     * 订购的菜品数量
     */
    private Integer foodQuantity;

    /**
     * 菜品图标
     */
    private String foodIcon;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
